﻿using SaiLing.Domain.Persistence.Relational;
using System;
using System.Collections.Generic;
using System.Text;

namespace SaiLing.SingleSignOn.Domain.Entities.System
{
    public class Account:IEntity
    {
        public string LoginName { get; set; }

        public string Email { get; set; }
        public string Name { get; set; }

        public string Password { get; set; }

        public bool IsAdministrator { get; set; }

        public bool IsAppAdministrator { get; set; }

        public string PasswordSalt { get; set; }

        /// <summary>
        /// 是否APP审核通过
        /// </summary>
        public bool IsApproved { get; set; } = true;

        /// <summary>
        /// true:正常   false:锁定
        /// </summary>
        public bool IsLockedOut { get; set; }

        public DateTime? LastLockoutDate { get; set; }

        public DateTime? LastLoginDate { get; set; }

        public DateTime? LastPasswordChangedDate { get; set; }

        public virtual List<UserPosition> Positions { get; set; }
    }
}
